<div class="textmodule">
    {if $moduletitle}
    <div class="textmodule_title textmodule_title2">
        <h3>{$moduletitle}</h3>
    </div>
    {/if}
    {permissions level=$smarty.const.UILEVEL_NORMAL}
    <div class="moduleactions">
        {if $permissions.edit == 1}
        {if $textitem->approved != 1}
        <img src="{$smarty.const.ICON_RELATIVE}edit.disabled.png" title="{$_TR.alt_edit_disabled}" alt="{$_TR.alt_edit_disabled}" {$smarty.const.XHTML_CLOSING}>
        {else}
        <a href="{link action=edit id=$textitem->id}"><img src="{$smarty.const.ICON_RELATIVE}edit.png" title="{$_TR.alt_edit}" alt="{$_TR.alt_edit}" {$smarty.const.XHTML_CLOSING}></a>
        {/if}
        {/if}
        {if $textitem->approved != 1 && ($permissions.approve == 1 || $permissions.manage_approval == 1 || $permissions.edit == 1)}
        <a href="{link module=workflow datatype=textitem m=textmodule s=$__loc->src action=summary}">{$_TR.link_viewap}</a>
        {/if}
        {if $permissions.manage_approval == 1 && ($textitem->id != 0 && $textitem->approved != 0)}
        <a href="{link module=workflow datatype=textitem m=textmodule s=$__loc->src action=revisions_view id=$textitem->id}" title="{$_TR.link_manageap}" >
            <img src="{$smarty.const.ICON_RELATIVE}revisions.png" title="{$_TR.alt_revisions}" alt="{$_TR.alt_revisions}" {$smarty.const.XHTML_CLOSING}> 
        </a>
        {/if}
    </div>
    {/permissions} 
    <div class="bodycopy">
        {if $textitem->approved != 0}
        {$textitem->text}
        {/if}
    </div>
</div>
